package cn.hk.empquery.controller;

import cn.HK.po.Emp;
import cn.hk.empquery.service.QueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/emp")
public class QueryController {
    //员工个人信息查询
      //请求路径   /emp/personalMSG
      //请求方式   get
      //请求参数   eid
      //返回值类型 EMP
    @Autowired
    private QueryService queryService;
    @RequestMapping("/personalMSG")
    public Emp queryPersonlMSG(Integer eId){
       return queryService.queryPersonlMSG(eId);
    }
}
